{% extends "view.html" %}

{% set feature = context[scaffolding.singular] %}

{% block layout_head_title %} - {{ feature.description }}{% endblock %}

{% block view_header %}
    {{ feature.description }}
{% endblock %}

{% set issue = feature.issue.get() %}
{% set publication = issue.publication if issue else None %}

{% block view_detail %}

    {% if feature.artist %}
    <h4 class="media-heading"><a href="{{ uri('artists:view', key=feature.artist.urlsafe()) }}">{{ s.print_value(feature.artist.get()) }}</a></h4>
    {% endif %}
    {% if feature.column %}
    <h5 class="media-heading"><a href="{{ uri('columns:view', key=feature.column.urlsafe()) }}">{{ s.print_value(feature.column.get()) }}</a></h5>
    {% endif %}
    <h5 class="media-heading">
    {% if publication %}
    <a href="{{ uri('magazines:view', key=publication.urlsafe()) }}">{{ s.print_value(publication) }}</a>
    {% endif %}
    <a href="{{ uri('issues:view', key=feature.issue.urlsafe()) }}">{{ issue.number_period_year() }}</a>
    </h5>

{% endblock %}